public class Person{
    //成员属性
    private String name;
    private int age;
    //成员方法
    //设置名字
    public void setName(String name){
        this.name = name;
    }
    //介绍名字
    public void sayName(){
        System.out.println("My name is " + name );
    }
}
